# Contributor: Ryan Barnett <ryanbarnett3@gmail.com>
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=squashfs-tools-ng
pkgver=1.3.2
pkgrel=0
pkgdesc="New set of tools and libraries for working with SquashFS images"
url="https://infraroot.at/projects/squashfs-tools-ng/"
arch="all"
license="GPL-3.0-or-later"
makedepends="
	automake
	libselinux-dev
	lz4-dev
	lzo-dev
	xz-dev
	zlib-dev
	zstd-dev
	"
subpackages="
	$pkgname-dev
	$pkgname-libs
	$pkgname-doc
	"
source="https://infraroot.at/pub/squashfs/squashfs-tools-ng-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
4a3a194af80aa9ed689cf541106906945f546fa15a5b30feff9df95998105298aa919757b1f17bf8387da0bdb05b70857ce818ce8572411cd5ef25e2b93c2022  squashfs-tools-ng-1.3.2.tar.gz
"
